package com.losdun.points.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.losdun.weixin.domain.WechatUser;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Description
 * @Author Sword.Ye
 * @Date 2025/8/18
 **/
@Data
@TableName(value = "points_user_points")
public class UserPoints {

    @TableId(type = IdType.INPUT)
    private Long wxUserId;

    private Integer totalPoints=0;

    private Integer availablePoints=0;

    private Integer frozenPoints=0;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private WechatUser wxUser;
}
